import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import ServiceAuditView from '@/views/ServiceAuditView.vue'
import DoctorDetailView from '@/views/DoctorDetailView.vue'
import DoctorView from '@/views/DoctorView.vue'
import FansView from '@/views/FansView.vue'
import WorkflowView from '@/views/WorkflowView.vue'
import DoctorAuditView from '@/views/DoctorAuditView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/service-audit',
      name: 'service-audit',
      component: ServiceAuditView
    },
    {
      path: '/doctor-detail',
      name: 'doctor-detail',
      component: DoctorDetailView,
      props: true
    },
    {
      path: '/doctor',
      name: 'doctor',
      component: DoctorView
    },
    {
      path: '/fan',
      name: 'fan',
      component: FansView
    },
    {
      path: '/workflow',
      name: 'workflow',
      component: WorkflowView
    },
    {
      path: '/doctor-audit',
      name: 'doctor-audit',
      component: DoctorAuditView,
    },

  ]
})

export default router

